/**
 * ProductInfoMapperExt
 * Copyright © 2015 - 2017
 * All rights reserved.
 * -----------------------------------
 * 2017-11-21  Created
 */
package com.lzy.product.dao;

import com.lzy.product.dtos.ProductInfoDto;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface ProductInfoMapperExt extends ProductInfoMapper {

    int remove(@Param("id") Long id, @Param("userId") Long userId);

    List<ProductInfoDto> selectList(@Param("param") ProductInfoDto dto);

    int updateList(@Param("shelves") Integer shelves, @Param("ids") String ids, @Param("userId") Long userId);

    List<ProductInfoDto> selectListByIdList(@Param("ids") String ids);

    List<ProductInfoDto> selectListByDept(@Param("param") ProductInfoDto dto, @Param("deptId") Long deptId);

    List<ProductInfoDto> selectListByClassifyId(@Param("param") ProductInfoDto dto, @Param("classifyId") Long classifyId);

    List<ProductInfoDto> selectListByClassifyIdList(@Param("param") ProductInfoDto dto,@Param("ids") String ids);
}